package com.neuedu.entity;

import com.neuedu.utils.ColumnMapping;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *    1 jdbc 查询元数据
 *
 *    2 io
 *
 *    3 根据模板写  文件
 *
 */

/**
 * 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {

    @ColumnMapping("menu_id")
    private  Integer menuId;

    @ColumnMapping("menu_name")
    private  String menuName;

    private  String url;

    @ColumnMapping("parent_id")
    private  Integer parentId;

    private  Integer active;

    private  Date createtime;

    private Boolean hasChildren = true;

}
